<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
    
</head>
<body>
<form id="dept-add-dlg-form" action="userServlet.do?method=add" method="post">
    <div class="datagrid-body">
        <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
             <tbody>
          <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">部门名称</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
<!-- 							<input type="text" name="deptName" -->
<!-- 							class="easyui-validatebox" style="width: 230px"> -->


							<input style="width: 230px;" name="departmentNum" class="easyui-combobox" data-options="url:'departmentServlet.do?method=queryAll',textField:'departmentName',valueField:'departmentNum',required:true">
						</td>
					</tr>
         		 
<!-- 					<tr class="datagrid-row"> -->
<!-- 						<td -->
<!-- 							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">报考车型</td> -->
<!-- 						<td style="border-style: solid; width: 35%; text-align: left;"> -->
<!-- 					        <select name="candiCar"> -->
<!-- 					        	<option value="C1">C1</option> -->
<!-- 					        	<option value="A1">A1</option> -->
<!-- 					        	<option value="A2">A2</option> -->
<!-- 					        	<option value="B1">B1</option> -->
<!-- 					        	<option value="B2">B2</option> -->
<!-- 					        </select> -->
<!-- 						</td> -->
<!-- 					</tr> -->
					
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">用户昵称</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="userName"
							class="easyui-validatebox" style="width: 230px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">用户登陆编码</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="userNum"
							class="easyui-validatebox" style="width: 230px">
 									
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">密码</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="password" name="password" class="easyui-validatebox" value="123456"
							style="width: 230px">
						</td>
					</tr>
            </tbody>
        </table>
    </div>
</form>
<script type="text/javascript">
    $(function(){   	
        $("#dept-add-dlg-form .easyui-validatebox")
            .validatebox({
                required:true,
                novalidate:true
            })
            .focus(function(){
                $(this).validatebox({novalidate:false});
            }).blur(function(){
            $(this).validatebox({novalidate:false});
        });
    });
</script>
</body>
</html>